package com.esiag.isidis.fi.pdsteam.views;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class LabledTextField extends JPanel {
	JLabel lbl;
	JTextField text;
	public LabledTextField(String lbl,int width, int textWidth) {
		super();
		this.lbl = new JLabel(lbl);
		this.lbl.setSize(width, 10);
		this.text = new JTextField(textWidth);
		this.add(this.lbl);
		this.add(text);
	}
	public String getText() {
		return text.getText();
	}
	
}
